package com.dailyblue.java.spring.security.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class DemoController {
    // http://localhost:8080/demo
    @GetMapping
    public String execute(){
        System.out.println("DemoController`get");
        return "DemoController`get";
    }
    @PostMapping
    public String post(){
        System.out.println("DemoController`post");
        return "DemoController`post";
    }
}
